package com.app.serial.config;/**
 * @program: app-admin
 * @name SerialConfig
 * @description: 串口配置
 */

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *@author:
 *@program: app-admin
 *@name SerialConfig
 *@description: 串口配置
 */
@Component
@ConfigurationProperties(prefix = "serial")
public class SerialConfig {

    /**
     * 串口名称
     */
    private static String portName;


    /**
     * 串口波特率
     */
    private static Integer baudRate;

    public static String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        SerialConfig.portName = portName;
    }

    public static Integer getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(Integer baudRate) {
        SerialConfig.baudRate = baudRate;
    }
}
